package com.example.streamsqlpark.base.exception;

/**
 * @author voloiono
 * @date 2024/4/17 11:50
 */
public class AbstructApiException extends RuntimeException{
    private final Long responseCode;

    public AbstructApiException(String message, Long responseCode) {
        super(message);
        this.responseCode = responseCode;
    }

    public AbstructApiException(Throwable cause, Long responseCode) {
        super(cause);
        this.responseCode = responseCode;
    }

    public AbstructApiException(String message, Throwable cause, Long responseCode) {
        super(message, cause);
        this.responseCode = responseCode;
    }

    public Long getResponseCode() {
        return responseCode;
    }
}
